package com.kai.prc.consummer;

import com.kai.dto.UserDto;
import com.kai.service.UserService;

/**
 * @author kai
 * @date 2021/3/20 9:18
 * @description:
 */
public class TestRPC {

    public static void main(String[] args) {
        UserService userService = FactoryProxy.FactoryUserServiceInstance(UserService.class);


        UserDto userDto = new UserDto();
        userDto.setAge(18);
        userDto.setName("fff");
        System.out.println("userDto = " + userDto);
        UserDto userDto1 = userService.addUser(userDto);
        System.out.println("userDto1 = " + userDto1);
    }
}
